package com.jeeplus.mob.web;

import com.jeeplus.common.json.AjaxJson;
import com.jeeplus.mob.entity.mobpojo.WaycardrecordInfo;
import com.jeeplus.mob.service.WaycardrecordService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/mob/wayCardrecord")
public class WaycardrecordController {

    @Autowired
    private WaycardrecordService waycardrecordService;

    /**
     * 在途打卡
     * @param waycardrecordInfo
     * @return
     */
    @RequestMapping(value = "punchWay",method = RequestMethod.POST)
    @ApiOperation(value = "在途打卡")
    public AjaxJson punchWay(WaycardrecordInfo waycardrecordInfo) {
        AjaxJson ajaxJson = waycardrecordService.punchWay(waycardrecordInfo);
        return ajaxJson;
    }
}
